//
//  NSString+GetVCFromSB.m
//  WestWolves
//
//  Created by JL on 15/12/11.
//  Copyright © 2015年 ZJ. All rights reserved.
//

#import "NSString+GetVCFromSB.h"

@implementation NSString (GetVCFromSB)
+(id)instantiateInitialViewControllerWithSBName:(NSString *)sbName
{
    UIStoryboard *sb=[UIStoryboard storyboardWithName:sbName bundle:nil];
    return sb.instantiateInitialViewController;
}
+(id)instantiateViewControllerWithIdentifier:(NSString *)VCIdentifier andSBName:(NSString *)sbName
{
    UIStoryboard *sb=[UIStoryboard storyboardWithName:sbName bundle:nil];
    return [sb instantiateViewControllerWithIdentifier:VCIdentifier];
}
+(id)instantiateViewControllerWithIdentifier:(NSString *)VCIdentifier andSameSBVC:(UIViewController *)vc
{
    UIStoryboard *sb = [vc storyboard];
    return [sb instantiateViewControllerWithIdentifier:VCIdentifier];
}
@end
